Skip to content

added option for quantile regression in scatter#197

Merged
clemenscremer merged 4 commits intomainfrom
quantile_regression
May 24, 2023
Merged

added option for quantile regression in scatter#197
clemenscremer merged 4 commits intomainfrom
quantile_regression

Conversation

@clemenscremer
Copy link
Copy Markdown
Collaborator

via bool fit_to_quantiles parameter

via bool fit_to_quantiles parameter
@clemenscremer clemenscremer requested a review from ecomodeller May 24, 2023 05:39
fmskill/plot.py Outdated
)

if fit_to_quantiles:
plt.plot(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to reduce duplication, e.g. by creating new variables that for the x,ys that will be used in the regression.

Right now, in order to understand the code, you have to compare the two branches of the condition, and try to spot the differences, it is better if it is obvious.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! I made it more concise

clemenscremer and others added 2 commits May 24, 2023 11:09
overwriting x_trend for conciseness. Might be dangerous be we don't use it anywhere else.
@clemenscremer clemenscremer merged commit b96568c into main May 24, 2023
@ecomodeller ecomodeller deleted the quantile_regression branch May 24, 2023 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants